// @ts-ignore

 
import { api } from '@/utils/api';

/** 新增排班 POST /proShiftScheduleInfo/add */
export async function proShiftScheduleInfoAdd(
  body: BIZAPI.ProShiftScheduleInfoCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function proShiftScheduleInfoAdd(
  body: BIZAPI.ProShiftScheduleInfoCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function proShiftScheduleInfoAdd(
  body: BIZAPI.ProShiftScheduleInfoCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function proShiftScheduleInfoAdd(
  body: BIZAPI.ProShiftScheduleInfoCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/proShiftScheduleInfo/add`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/proShiftScheduleInfo/add`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 删除排班 POST /proShiftScheduleInfo/delete */
export async function proShiftScheduleInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function proShiftScheduleInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function proShiftScheduleInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function proShiftScheduleInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/proShiftScheduleInfo/delete`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/proShiftScheduleInfo/delete`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 导出排班 POST /proShiftScheduleInfo/export */
export async function proShiftScheduleInfoExport(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<any>;

export async function proShiftScheduleInfoExport(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<any>>;

export async function proShiftScheduleInfoExport(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<any>;

export async function proShiftScheduleInfoExport(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<any>(`/app/proShiftScheduleInfo/export`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<any>(`/app/proShiftScheduleInfo/export`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 生成排班日历 POST /proShiftScheduleInfo/generateCalendar */
export async function proShiftScheduleInfoGenerateCalendar(
  body: BIZAPI.ProShiftScheduleGenerateCalendarParam,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultListListProShiftScheduleCalendarEntity>;

export async function proShiftScheduleInfoGenerateCalendar(
  body: BIZAPI.ProShiftScheduleGenerateCalendarParam,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultListListProShiftScheduleCalendarEntity>>;

export async function proShiftScheduleInfoGenerateCalendar(
  body: BIZAPI.ProShiftScheduleGenerateCalendarParam,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultListListProShiftScheduleCalendarEntity>;

export async function proShiftScheduleInfoGenerateCalendar(
  body: BIZAPI.ProShiftScheduleGenerateCalendarParam,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultListListProShiftScheduleCalendarEntity>(
      `/app/proShiftScheduleInfo/generateCalendar`,
      {
        method: 'POST',
        headers: {
          'Content-Type': 'application/json'
        },
        data: body,
        ...(options || {}),
        tupleResponse: true
      }
    );
  }

  return api<BIZAPI.IResultListListProShiftScheduleCalendarEntity>(
    `/app/proShiftScheduleInfo/generateCalendar`,
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {})
    }
  );
}

/** 获取排班详情数据 POST /proShiftScheduleInfo/get */
export async function proShiftScheduleInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultProShiftScheduleInfoResp>;

export async function proShiftScheduleInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultProShiftScheduleInfoResp>>;

export async function proShiftScheduleInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultProShiftScheduleInfoResp>;

export async function proShiftScheduleInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultProShiftScheduleInfoResp>(`/app/proShiftScheduleInfo/get`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultProShiftScheduleInfoResp>(`/app/proShiftScheduleInfo/get`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取排班分页数据 POST /proShiftScheduleInfo/page */
export async function proShiftScheduleInfoPage(
  body: BIZAPI.ProShiftScheduleInfoQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageProShiftScheduleInfoEntity>;

export async function proShiftScheduleInfoPage(
  body: BIZAPI.ProShiftScheduleInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageProShiftScheduleInfoEntity>>;

export async function proShiftScheduleInfoPage(
  body: BIZAPI.ProShiftScheduleInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageProShiftScheduleInfoEntity>;

export async function proShiftScheduleInfoPage(
  body: BIZAPI.ProShiftScheduleInfoQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageProShiftScheduleInfoEntity>(`/app/proShiftScheduleInfo/page`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultIPageProShiftScheduleInfoEntity>(`/app/proShiftScheduleInfo/page`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 更新排班 POST /proShiftScheduleInfo/update */
export async function proShiftScheduleInfoUpdate(
  body: BIZAPI.ProShiftScheduleInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultVoid>;

export async function proShiftScheduleInfoUpdate(
  body: BIZAPI.ProShiftScheduleInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultVoid>>;

export async function proShiftScheduleInfoUpdate(
  body: BIZAPI.ProShiftScheduleInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultVoid>;

export async function proShiftScheduleInfoUpdate(
  body: BIZAPI.ProShiftScheduleInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultVoid>(`/app/proShiftScheduleInfo/update`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultVoid>(`/app/proShiftScheduleInfo/update`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}
